Title: f strings have never worked · Issue #98 · vim-python/python-syntax · GitHub
Open Graph Title: f strings have never worked · Issue #98 · vim-python/python-syntax
X Title: f strings have never worked · Issue #98 · vim-python/python-syntax
Description: Hi, currently have an M3 Macbook Pro Max on Sonoma 14.1 VIM 9.1 on iterm2 I've been using this plugin for a long, long time at this point though, across many macbooks and MacOS versions, and i've never had f-string formatting work ever. ...
Open Graph Description: Hi, currently have an M3 Macbook Pro Max on Sonoma 14.1 VIM 9.1 on iterm2 I've been using this plugin for a long, long time at this point though, across many macbooks and MacOS versions, and i've n...
X Description: Hi, currently have an M3 Macbook Pro Max on Sonoma 14.1 VIM 9.1 on iterm2 I've been using this plugin for a long, long time at this point though, across many macbooks and MacOS versions, and i&...
Opengraph URL: https://github.com/vim-python/python-syntax/issues/98
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"f strings have never worked","articleBody":"Hi,\r\n\r\ncurrently have an M3 Macbook Pro Max on Sonoma 14.1\r\nVIM 9.1 on iterm2\r\n\r\nI've been using this plugin for a long, long time at this point though, across many macbooks and MacOS versions, and i've never had f-string formatting work ever. I have it installed as a separate plugin with vim plug, and have `let g:python_highlight_all = 1`.\r\nI have also at other times have had exclusively vim-polyglot installed, which should also use this plugin. Why is this happening? \r\n\r\nThis is my full vimrc - here i'm using vim-polyglot which claims to use this repo under the hood: \r\n```\r\n\" to `filetype on`, and unless we toggle it, our custom filetype detections\r\n\" won't be run.\r\nfiletype off\r\n\r\nset encoding=utf-8\r\nset nocompatible\r\n\r\n\" Setup FZF\r\nset rtp+=~/.fzf\r\n\r\n\" Vim-Plug\r\ncall plug#begin('~/.vim/plugged')\r\nPlug 'bling/vim-airline'\r\nPlug 'Valloric/YouCompleteMe'\r\nPlug 'rdnetto/YCM-Generator', {'branch': 'stable'}\r\nPlug 'vim-scripts/a.vim'\r\nPlug 'Yggdroot/indentLine'\r\nPlug 'preservim/nerdtree'\r\nPlug 'dense-analysis/ale'\r\nPlug 'preservim/nerdcommenter'\r\nPlug 'jistr/vim-nerdtree-tabs'\r\nPlug 'xolox/vim-notes'\r\nPlug 'xolox/vim-misc'\r\nPlug 'airblade/vim-gitgutter'\r\nPlug 'octol/vim-cpp-enhanced-highlight'\r\nPlug 'wincent/terminus'\r\nPlug 'majutsushi/tagbar'\r\nPlug 'kien/ctrlp.vim'\r\nPlug 'ivalkeen/vim-ctrlp-tjump'\r\nPlug 'jeffkreeftmeijer/vim-numbertoggle'\r\nPlug 'tpope/vim-commentary'\r\nPlug 'highwaynoise/chuck.vim'\r\nPlug 'sheerun/vim-polyglot'\r\nPlug 'phanviet/vim-monokai-pro'\r\nPlug 'quramy/tsuquyomi' \" this is a completion plugin for typescript\r\nPlug 'quramy/vim-js-pretty-template'\r\nPlug 'vim-latex/vim-latex'\r\n\" Plug 'leafgarland/typescript-vim'\r\n\" Plug 'vim-python/python-syntax'\r\n\" Plug 'munshkr/vim-tidal'\r\nPlug 'junegunn/fzf', { 'do': { -\u003e fzf#install() } }\r\nPlug 'junegunn/fzf.vim'\r\ncall plug#end()\r\n\r\nfiletype indent plugin on\r\nsyntax enable\r\nlet g:python_highlight_all = 1\r\n\r\nset background=dark\r\nset t_Co=256 \" 256 term coloring\r\n\r\nset termguicolors\r\ncolorscheme monokai_pro\r\n\r\n\" Display.\r\nset ruler \" show cursor position\r\nset showcmd \" show normal mode commands as they are entered\r\nset showmode \" show editing mode in status (-- INSERT --)\r\nset showmatch \" flash matching delimiters\r\n\r\n\" Scrolling.\r\n\"set scrolljump=5 \" scroll five lines at a time vertically\r\nset sidescroll=10 \" minumum columns to scroll horizontally\r\nset scrolloff=8 \" start scrolling 15 from bott\r\n\r\n\" Indent.\r\nset autoindent \" carry indent over to new lines\r\n\r\n\" Other.\r\nset noerrorbells \" no bells in terminal\r\n\r\nset backspace=indent,eol,start \" backspace over everything\r\n\r\nset undolevels=1000 \" number of undos stored\r\nset viminfo='50,\"50 \" '=marks for x files, \"=registers for x files\r\n\r\n\" Return to last edit position when opening files (You want this!)\r\nautocmd BufReadPost *\r\n\\ if line(\"'\\\"\") \u003e 0 \u0026\u0026 line(\"'\\\"\") \u003c= line(\"$\") |\r\n\\ exe \"normal! g`\\\"\" |\r\n\\ endif\r\n\r\n\" modelines allow you to set variables specific to a file. By default, the first \r\n\" and last five lines are read by vim for variable settings. For example, \r\n\" if you put the following in the last line of a C program, you would get a \r\n\" textwidth of 60 chars when editing that file:\r\n\" /* vim: tw=60 ts=2: */\r\n\" The modelines variable sets the number of lines (at the beginning and \r\n\" end of each file) vim checks for initializations.\r\nset modelines=0 \"modelines are bad for your health\r\n\r\n\" Prevent the cursor from changing the current column when \r\n\" jumping to other lines within the window\r\nset nosol\r\n\r\n\" recursively search parent directories until tag file found\r\nset tags=tags;/\r\n\" the iskeyword option specifies which characters can appear in a word.\r\n\" '@' stands for all alphabetic letters. '48-57' stands for ASCII characters\r\n\" 48 through 57, which are the numbers 0 to 9. '192-255' are the printable\r\n\" latin characters\r\nset iskeyword=@,45,48-57,58,_,192-255,#\r\n\r\n\" Set Line numbers on\r\nset number\r\n\"Set line numbers relative to current line\r\nset relativenumber\r\n\r\n\" Move to next displayed line instead of actual line\r\nnnoremap j gj\r\nnnoremap k gk\r\n\r\n\" Sets how many lines of history VIM has to remember\r\nset history=700\r\n\r\n\" Enable filetype plugins\r\n\" enable filetype detection\r\nfiletype on\r\n\" enable loading the plugin files for specific file types\r\nfiletype plugin on\r\n\" enable loading the indent file for specific file types\r\nfiletype indent on\r\n\r\n\" When a file has been detected to have been changed outside of Vim and \r\n\" it has not been changed inside of Vim, automatically read it again.\r\nset autoread\r\n\" Automatically checktime when cursor has not moved in a while\r\nau CursorHold * checktime \r\n\r\n\" Turn off swap files\r\nset noswapfile\r\nset nobackup\r\nset nowb\r\n\r\n\" Keep undo history across sessions, by storing in file.\r\n\" set undofile\r\n\r\n\" With a map leader it's possible to do extra key combinations\r\n\" like \u003cleader\u003ew saves the current file\r\nlet mapleader = \",\"\r\n\" global mapleader\r\nlet g:mapleader = \",\"\r\n\r\n\" cf opens editable command history\r\nmap \u003cC-f\u003e q:i\r\n\r\n\" highlight current line curosr is on\r\nset cursorline\r\n\r\n\" ignore case when searching\r\nset ignorecase\r\n\r\n\" When searching try to be smart about cases \r\nset smartcase\r\n\r\n\" Highlight search results\r\nset hlsearch\r\n\r\n\" Makes search act like search in modern browsers\r\nset incsearch \r\n\r\n\" Map \u003cC-L\u003e (redraw screen) to also turn off search highlighting until the\r\n\" next search\r\nnnoremap \u003cC-L\u003e :nohl\u003cCR\u003e\u003cC-L\u003e\r\n\r\n\" let copy and paste work with yy, D, P, etc\r\nset clipboard=unnamed\r\n\"\r\nnnoremap :b :Bclose\u003cCr\u003e\r\n\r\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\r\n\" splits\r\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\r\nmap \u003cleader\u003ev :vsp\u003cCR\u003e\r\nmap \u003cleader\u003eh :sp\u003cCR\u003e\r\n\r\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\r\n\" =\u003e Status line\r\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\r\n\" Always show the status line\r\nset laststatus=2\r\n\r\n\" Line text past 80 char\r\nset textwidth=120\r\n\"set colorcolumn=+1 \" relative (to textwidth) columns to highlight \"\r\n\r\nset colorcolumn=120 \" absolute columns to highlight \"\r\n\r\n\" Tabs Settings\r\nset shiftwidth=4 \" two spaces per indent\r\nset tabstop=4 \" number of spaces per tab in display\r\nset softtabstop=4 \" number of spaces per tab when inserting\r\nset expandtab \" substitute spaces for tabs\r\n\r\n\" In many terminal emulators the mouse works just fine, thus enable it.\r\n\" Use mouse normally in all ('a') cases.\r\nif has('mouse')\r\n set mouse=a\r\nendif\r\n\r\n\" Don't redraw while executing macros (good performance config)\r\nset lazyredraw \r\nset ttyfast\r\n\r\n\" Don't get rid of buffers when changing files, used with minibufexpl.\r\n\" With :set hidden, opening a new file when the current buffer has unsaved \r\n\" changes causes files to be hidden instead of closed. The unsaved changes \r\n\" can still be accessed by typing :ls and then :b[N], where [N] is the \r\n\" number of a buffer \r\nset hidden\r\n\r\n\" Prompt before closing a buffer if unsaved work\r\nset confirm\r\n\r\n\" Autocompletion for buffer using tab\r\nset wildmenu\r\nset wildmode=longest:full,full\r\n\"set wildignorecase\r\n\r\n\" Buffer settings, use gb to jump to buffer list\r\nnoremap gb :ls\u003cCR\u003e:b\u003cSpace\u003e\r\n\r\n\" buffer settings, next previous delete\r\nmap gn :bn\u003ccr\u003e\r\nmap gp :bp\u003ccr\u003e\r\nmap gd :bd\u003ccr\u003e \r\n\r\n\" ******************** PLUGINS ********************\r\n\r\n\" ========== YouCompleteMe ==========\r\nlet g:ycm_global_ycm_extra_conf = '~/.vim/plugged/.ycm_extra_conf.py'\r\nlet g:ycm_clangd_binary_path = trim(system('brew --prefix llvm')).'/bin/clangd'\r\nlet g:ycm_python_binary_path = 'python'\r\n\" let g:loaded_youcompleteme = 1\r\n\" ===================================\r\n\r\n\" ========== NERD Tree ==========\r\nnmap \u003csilent\u003e \u003cF3\u003e :NERDTreeTabsToggle\u003cCR\u003e\r\n\" map \u003cC-n\u003e :NERDTreeTabsToggle\u003cCR\u003e\r\n\" noremap \u003cleader\u003en :NERDTreeToggle\u003cCR\u003e\r\nmap tt :NERDTreeToggle\u003cCR\u003e\r\nnoremap tt :NERDTreeToggle\u003cCR\u003e\r\nlet NERDTreeShowHidden=1\r\n\" ===============================\r\n\r\n\" ========== Indent Line ==========\r\nlet g:indentLine_color_term = 239\r\nlet g:indentLine_char = '┆'\r\n\" =================================\r\n\r\n\" command-t settings for FB\r\nlet g:CommandTMaxHeight = 30\r\nlet g:CommandTMaxFiles = 500000\r\nlet g:CommandTInputDebounce = 200\r\nlet g:CommandTFileScanner = 'watchman'\r\nlet g:CommandTMaxCachedDirectories = 10\r\nlet g:CommandTSmartCase = 1\r\n\r\n\" ========== VIM - Airline ==========\r\n\" Enable the list of buffers\r\nlet g:airline#extensions#tabline#enabled = 1\r\n\r\n\" Show just the filename\r\nlet g:airline#extensions#tabline#fnamemod = ':t'\r\n\r\n\" Show buffer numbers in airline\r\nlet g:airline#extensions#tabline#buffer_nr_show = 1\r\n\r\n\" Powerline fonts on\r\nlet g:airline_powerline_fonts = 1\r\n\r\n\" Airline theme\r\nlet g:airline_theme='dark'\r\n\" disable fileencoding, fileformat\r\nlet g:airline_section_y=''\r\n\" disable syntastic, whitespace\r\nlet g:airline_section_warning=''\r\n\" disable bufferline/filename\r\nlet g:airline_section_c=''\r\n\" ==================================\r\n\r\n\" ========== Jedi-Vim ==========\r\nlet g:jedi#use_splits_not_buffers=\"left\"\r\nlet g:jedi#popup_select_first=0\r\n\" let jedi#force_py_version=3.9\r\n\" ==============================\r\n\r\n\" vim - notes directory\r\n\" ========== VIM Notes ==========\r\nlet g:notes_directories = ['~/notes']\r\nlet g:notes_conceal_url = 0\r\nlet g:notes_conceal_bold = 0\r\nlet g:notes_conceal_italic = 0\r\nlet g:notes_smart_quotes = 0\r\nlet g:notes_unicode_enabled = 0\r\nlet g:notes_conceal_code = 0\r\n\" ===============================\r\n\r\n\" ========== Terminus ==========\r\n\" disable insert cursor change \r\nlet g:TerminusCursorShape = 0\r\n\" ==============================\r\n\r\n\" ========= Tag Bar ===========\r\nnmap \u003cleader\u003eg :TagbarToggle\u003cCR\u003e\r\nlet g:tagbar_left = 1\r\nlet g:tagbar_width = 50\r\nlet g:tagbar_foldlevel = 1\r\n\" =============================\r\n\r\n\" ========== FZF ===========\r\n\"let $FZF_DEFAULT_COMMAND= \"ag -g ''\"\r\nnmap \u003cleader\u003et :FZF\u003cCR\u003e\r\nnmap \u003cleader\u003ea :Tags\u003cCR\u003e\r\nnmap \u003cleader\u003ew :w\u003cCR\u003e\r\n\" ==========================\r\n\r\n\" ========== Ctrl-P ==========\r\nnmap \u003cleader\u003eb :CtrlPBuffer\u003cCR\u003e\r\n\" this is the command to open the search buffer \r\nnmap \u003cleader\u003er :CtrlPMRU\u003cCR\u003e\r\nnmap cpr :CtrlPClearCache\u003cCR\u003e\r\nlet g:ctrlp_max_files = 300000\r\nlet g:ctrlp_match_window = 'bottom,order:ttb,min:1,max:25,results:25'\r\nlet g:ctrlp_cmd='CtrlP :pwd'\r\nlet g:ctrlp_lazy_update = 210\r\n\r\n\" Use The Silver Searcher https://github.com/ggreer/the_silver_searcher\r\nif executable('ag')\r\n \" Use Ag over Grep\r\n set grepprg=ag\\ --nogroup\\ --nocolor\r\n\r\n \" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore\r\n let g:ctrlp_user_command = 'ag -l --nocolor -g \"\" %s'\r\n\r\n \" ag is fast enough that CtrlP doesn't need to cache\r\n let g:ctrlp_use_caching = 0\r\nendif\r\n\" ===========================\r\n\r\n\" ========== Vim Commentary ==========\r\nnmap cm gcc\u003cCR\u003e\r\nmap mm gc \u003cCR\u003e\r\nnmap mm gc\u003cCR\u003e\r\nnnoremap mm gc\u003cCR\u003e\r\nnmap cp gcap\u003cCR\u003e\r\n\" ====================================\r\n\" **************************************************\r\n\r\n\" Configuration for ~/.vimrc:\r\n\" Bind \u003cleader\u003ey to forward last-yanked text to Clipper\r\nnnoremap \u003cleader\u003ey :call system('nc localhost 8377', @0)\u003cCR\u003e\r\n\r\n\" Returns true if paste mode is enabled\r\nfunction! HasPaste()\r\n if \u0026paste\r\n return 'PASTE MODE '\r\n en\r\n return ''\r\nendfunction\r\n\r\naugroup reload_vimrc\r\n autocmd!\r\n autocmd BufWritePost $MYVIMRC source $MYVIMRC\r\naugroup END\r\n\r\n\" NerdCommenter alternate syntax for .test files - currently not working!\r\nlet g:NERDCustomDelimiters = {\r\n \\ 'test': { 'left': '#', 'leftAlt': '#'},\r\n\\ }\r\nlet NERD_test_alt_style=1\r\n\r\n\" Require tpope/vim-repeat to enable dot repeat support\r\n\" Jump to anywhere with only `s{char}{target}`\r\n\" `s\u003cCR\u003e` repeat last find motion.\r\nnmap s \u003cPlug\u003e(easymotion-s2)\r\nlet g:EasyMotion_smartcase = 1\r\n\r\n\" Ctrlp fuzzy find for tags - overrides default tag jump\r\nnnoremap \u003cc-]\u003e :CtrlPtjump\u003ccr\u003e\r\nvnoremap \u003cc-]\u003e :CtrlPtjumpVisual\u003ccr\u003e\r\n\" if only one result, jump silently and immediately\r\nlet g:ctrlp_tjump_only_silent = 1\r\n\" don't show tag name in results as it wastes space\r\nlet g:ctrlp_tjump_skip_tag_name = 1\r\n\r\n\" LaTEX Stuff \" \r\nlet g:Tex_MultipleCompileFormats='pdf,bib,bibtex,pdf'\r\n```\r\n\r\nI also switched my vimrc to a super minimal one using this repo directly and it still didn't work: \r\n```\r\nset encoding=utf-8\r\nset nocompatible\r\n\r\n\" Vim-Plug\r\ncall plug#begin('~/.vim/plugged')\r\nPlug 'vim-python/python-syntax'\r\ncall plug#end()\r\n\r\nfiletype indent plugin on\r\nsyntax enable\r\nlet g:python_highlight_all = 1\r\n```\r\n\r\nand it still doesn't work. \r\n","author":{"url":"https://github.com/bgenchel","@type":"Person","name":"bgenchel"},"datePublished":"2024-02-08T23:28:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/98/python-syntax/issues/98"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fffade24-8b95-3f74-4c4d-c72a5d5e0f79 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD28:EF6F3:4D6341A:65A42A7:696BEDA2 |
| html-safe-nonce | cab15682d65e2b15c17a03011102e71f0c69db39cb491fb6fb473a13bff4b4e3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDI4OkVGNkYzOjRENjM0MUE6NjVBNDJBNzo2OTZCRURBMiIsInZpc2l0b3JfaWQiOiIxMDEyNjI2MzIyMzQyMjc2NTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a76fdc68c3dbc640597795e11fd47e0175c6822d51f5da829cff00c9a670aa1d |
| hovercard-subject-tag | issue:2126229843 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vim-python/python-syntax/98/issue_layout |
| twitter:image | https://opengraph.githubassets.com/66d7f190d6150ab5523c24462faa1c5bc96ecafabf5d71adaa8208129c4ea3a8/vim-python/python-syntax/issues/98 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/66d7f190d6150ab5523c24462faa1c5bc96ecafabf5d71adaa8208129c4ea3a8/vim-python/python-syntax/issues/98 |
| og:image:alt | Hi, currently have an M3 Macbook Pro Max on Sonoma 14.1 VIM 9.1 on iterm2 I've been using this plugin for a long, long time at this point though, across many macbooks and MacOS versions, and i've n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bgenchel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/vim-python/python-syntax git https://github.com/vim-python/python-syntax.git |
| octolytics-dimension-user_id | 25825542 |
| octolytics-dimension-user_login | vim-python |
| octolytics-dimension-repository_id | 82203847 |
| octolytics-dimension-repository_nwo | vim-python/python-syntax |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 82203847 |
| octolytics-dimension-repository_network_root_nwo | vim-python/python-syntax |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width