Hot answers tagged

7

chge is an abbreviation of "change." If you do not like this word, just type zw to mark it as "wrong." vim's spell word lists are obtained from free sources and are sometimes not ideal. Fortunately, local custom word lists can be maintained with zw and zg (wrong and good respectively).


3

Use a :terminal: " in ~/.vim/after/ftplugin/python.vim nnoremap <buffer> <CR> :write <bar> terminal python3 %<CR> " update b:undo_ftplugin When the command is finished, you can :set modifiable (:set ma) and edit.


2

Going deeper with vim's "pattern": (content below mainly comes from neovim' s help ) Character classes The character range matches a fixed set of characters. A character class is similar, but the set of characters can be redefined without changing the search pattern. For example, search for this pattern: /\f\+ The "\f" item stands ...


1

See :h 'viewdir' and :set viewdir? This is the same option for both Vim and Neovim, but Neovim has different default settings.


1

You may run autocmd FileType python map <buffer> <CR> :w<CR>:call Exec('!python3 '.expand('%'))<CR> And use: function! Exec(cmd) redir @x exec printf('silent %s',a:cmd) redir END tabnew norm "xp endfunction It writes the output of a command in a new tab.


Only top voted, non community-wiki answers of a minimum length are eligible