:window diffthis
:diffoff! " <-:window diffoff
]] Jump forward to begin of next toplevel
[[ Jump backwards to begin of current toplevel (if already there, previous toplevel)
]m Jump forward to begin of next method/scope
[m Jump backwords to begin of previous method/scope
][ Jump forward to end of current toplevel
[] Jump backward to end of previous of toplevel
]M Jump forward to end of current method/scope
[M Jump backward to end of previous method/scope
PYMODE
========== ============================
Key Command (modes)
========== ============================
[[ Jump to previous class or function (normal, visual, operator)
]] Jump to next class or function (normal, visual, operator)
[M Jump to previous class or method (normal, visual, operator)
]M Jump to next class or method (normal, visual, operator)
aC Select a class. Ex: vaC, daC, yaC, caC (normal, operator)
iC Select inner class. Ex: viC, diC, yiC, ciC (normal, operator)
aM Select a function or method. Ex: vaM, daM, yaM, caM (normal, operator)
iM Select inner func. or method. Ex: viM, diM, yiM, ciM (normal, operator)
========== ============================
sudo -E vim README.txt
sudoedit
" Make it AutoScroll
augroup JupyterTerm
autocmd!
autocmd TextChanged __jupyter_term__ call cursor('$', 0)
augroup END
echo getregtype('a') " To see if in Visual or v
:vnoremap <f2> :<c-u>exe join(getline("'<","'>"),'<bar>')<cr>
:execute getline(".")
call setqflist([])
# Add first line for debug
CFLAGS='-g -gdwarf4 -DDEBUG -O0 -fno-omit-frame-pointer' \
./configure \
--with-features=huge \
--prefix=/usr/local \
--disable-netbeans \
--enable-gui=auto \
\
--enable-cscope \
--enable-fail-if-missing \
--enable-largefile \
--enable-luainterp \
--enable-multibyte \
\
--enable-perlinterp=dynamic \
--enable-python3interp=dynamic \
--with-python3-config-dir=$(python3-config --configdir) \
--enable-rubyinterp=dynamic \
--with-ruby-command=$(which ruby) \
--with-luajit \
\
--enable-gui=gtk3 \
\
--with-compiledby="Tinmarino" \
##--with-python3-command=python3.7 \
Notes: * Cannot make py2 and py3 in debian (choose only one) * Dynamic loading impossible in debian
/[^\x00-\x7F]
[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]
:call confirm('My warning here')
; this uses a popup window in GVIM.:call getchar()
.:call input('Press enter to continue')
function! Foo()
" do your thing
for i in range(1,8)
let @a = i
endfor
endfunction
" save current time
let start_time = reltime()
" call your function
call Foo()
" echo elapsed time expressed in seconds
echo "elapsed time:" reltimestr(reltime(start_time))
vim -s -e ‘
example: vim -i NONE -u NORC -U NONE -V1 -nNesS script-cmd -c'echo""|qall!' -- args...
call youcompleteme
#DisableCursorMovedAutocommands()
" do your stuff
call youcompleteme
#EnableCursorMovedAutocommands()
ZZ ZQ
runtime macros/matchit.vim
set t_te=
By default VIM, when terminating, sends the string configured with the option t_te to the hosting terminal to tell it to clear the screen. To avoid it just :set t_te= to send nothing to the terminal and avoid screen clearing. See :help term form more information about terminal capabilities.
qaq
:%s//\=setreg('A', submatch(0), 'V')/gn
if v:version == 704 && has(‘patch399’)