vim shortcuts

youngjoonwon

Youngjoon Won

Posted on February 7, 2024

vim shortcuts

NERDTree Refresh, press r

ctrl-w +   //increase height
ctrl-w -
ctrl-w > //increase width
ctrl-w <

ctrl-w W //window up
ctrl-w r //window rotate

ctrl-w shift-n //vim term scroll, i to end

select shift-> //tab all
G //move to end of file

:term //open split terminal
:vert term
:sp //split panel horizontal
:vs //split panel vertical

//vundle install example

$ brew install cmake python go
$ cd ~/.vim/bundle/YouCompleteMe
$ python3 install.py --all

$ vim ~/.vimrc

//add Bundle 'Valloric/YouCompleteMe'
//add Plugin 'preservim/nerdtree'

$ vim

:PluginInstall

$ cat ~/.vimrc

" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
set nocompatible " required
filetype off " required
set backspace=indent,eol,start

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
let python_highlight_all=1
syntax on
" syntax on
set nu
set encoding=utf-8
set tabstop=2
set shiftwidth=4

call vundle#begin()

" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'vim-syntastic/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'preservim/nerdtree'

" Plugin 'Valloric/YouCompleteMe'
Bundle 'Valloric/YouCompleteMe'

" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)

" ...

" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required

💖 💪 🙅 🚩
youngjoonwon
Youngjoon Won

Posted on February 7, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related