Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #**VIM**
- >kntrl + o //open command line in vim
- >:colorschema =>**press tab and select something**<br/>
- >:syntax enable
- >:set number => **show line number**<br/>
- if you want new schema
- copy schema to ~/.vim/colors directory<br/>
- >:match **press tab select highlight type** *write pattern*<br/>
- :match Number /^Number/ =>**if when type Number (as string) color is changing**<br/>
- >:retab 2 => **2 spaces**<br/>
- >:set cursorline => **show cursor line colored**<br/>
- >:set cursorcolumn => **show cursor column colored**<br/>
- >:set number => **show line number**<br/>
- if you want your settings is default => crate ~/.vimrc file<br/>
- under example vimrc<br/>
- >colorscheme evening<br/>
- >set autoindent<br/>
- >set tabstop=2<br/>
- >syntax enable<br/>
- >set number<br/>
- >set statusline=%F%m%r%h%w\ [TYPE=%Y]\ %l:%v:%L<br/>
- >set laststatus=2<br/>
- ##**NAVIGATION**
- - press ESC and go to normal mode<br/>
- - press { => jump to beginning of paragraph or empty line above it<br/>
- - press } => jump to end of paragraph or empty line under it<br/>
- - press ( => move to beginning of paragraph<br/>
- - press ) => move to end of paragraph<br/>
- - press w => move to beginning of next word<br/>
- - press b => move to beginning of previous word<br/>
- - press e => move to end of word<br/>
- - press % when on the bracket => move to where bracket is closed <br/>
- - press i and go to insert mode<br/>
- - press A => move to end of line
- - press I => move to begin of line
- ##**SEARCH**
- >?<word> => **find first**<br/>
- >/<word> => **find end**<br/>
- press ESC and n => move all matching words<br/>
- ##**SELECT**
- - press ESC<br/>
- - press V => select full line<br/>
- - press v => select step step<br/>
- - press d => delete selected<br/>
- - press y => copy selected<br/>
- - press u => undo<br/>
- - press ctrl + r => redo<br/>
- ##**TAB**
- >:vertical new **filename** // or without new<br/>
- >:split new **filename** // or without new<br/>
- ######**MOVE**
- >:b **filename**<br/>
- >:b# =>**previous file**<br/>
- >:b number =>**buffer number**<br/>
- ######**MOVE OTHER SPLIT**<br/>
- ctrl + w<br/>
- ######**AUTOCOMPLETE**
- ctrl + n //show used words<br/>
- ######**SET DICTIONARY**
- >set dictionary+=**/../path**<br/>
- - ctrl + x ctrl+k //open dictionary words<br/>
- - ctrl + x ctrl+l // open linde sentences<br/>
- ##**MACRO RECORDING**
- - press ESC <br/>
- - press qa //record starting with register a (what you want replace with a)<br/>
- - press i //switch insert mode write somethings<br/>
- - press ESC <br/>
- - press q //en record<br/>
- - press @a //execute record<br/>
- - press @@ //execute last record<br/>
- ##**DIRECTORY**
- >:Sexplore =>**open current directory with split**<br/>
- ##**TERMINAL**
- >:shell =>**open terminal on current window**<br/>
- >exit =>**return to vim editor**<br/>
- >:! command **enter** =>**execute command whatever you want**<br/>
- ##**CLOSE**
- >qa =>**close all window**<br/>
- >wqa =>**write and close all window**<br/>
- ##**WINDOW SIZE**
- >resize 20 =>**set height to 20 lines**<br/>
- >res +5 =>**increase height 5 lines**<br/>
- >res -5 =>**decrease height 5 lines**<br/>
- >vertical resize 20 =>**make width 20 columns**<br/>
- >vertical resize 20 =>**make width 20 columns**<br/>
- >vertical resize +5 =>**increase height 5 lines**<br/>
- >vertical resize -5 =>**decrease height 5 lines**<br/>
- >vim -S vim_file =>**open vim with your saved session**<br/>
- - can use res instead of resize
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement