Size: 327
Comment:
|
Size: 1908
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
== Zenburn look and feel for Vim and GVim == Edit ~/.vimrc and add the following {{{ set t_Co=256 colors zenburn }}} Run the following: * mkdir -p ~/.vim/colors * cd ~/.vim/colors * wget https://github.com/jnurmine/Zenburn/blob/master/colors/zenburn.vim Zenburn colors: [[attachment:zenburn.vim]] == Exit without save == * Escape * :q! == Save and exit == * Escape * :wq == Insert == * Escape * Place cursor * Press i == Delete line == * Escape * Place cursor * Press dd == Delete character == * Escape * Place cursor * Press x == Undo == * Escape * Press u |
|
Line 12: | Line 53: |
Commands: | |
Line 20: | Line 60: |
Commands: | |
Line 24: | Line 63: |
== Search and replace all occurrences == * Escape * :%s/oldString/newString/g = Search = * Escape * /searchPatern * go to previous and next with '''n''' and '''p''' == Vi settings == Settings are saved in '''~/.exrc'''. For OpenSolaris/OpenIndiana {{{ set number set showmode }}} == Add extension wsgi == File /usr/share/vim/vim74/filetype.vim in Ubuntu 14.04 LTS (Trusty). {{{ #line 1577 in Ubuntu au BufNewFile,BufRead *.py,*.pyw,*.wsgi setf python }}} == vimrc with key mappings == {{{ set t_Co=256 set nocompatible colors zenburn filetype plugin on filetype indent on set tabstop=4 set shiftwidth=4 set expandtab map <M-left> :previous<cr> map <M-right> :next<cr> map <C-s> :w<cr> map <F4> :qa!<cr> map <F1> :sh<cr> set number map! <F6> <C-R>=strftime('%Y-%m-%dT%H:%M:%S')<cr> map <C-v> p map <C-u> u map <F5> :edit!<cr> map <F7> gg=G map <F3> / map <C-b> v map <C-c> y map <C-a> ggVG }}} |
vim
Console text editor for *NIX.
Zenburn look and feel for Vim and GVim
Edit ~/.vimrc and add the following
set t_Co=256 colors zenburn
Run the following:
- mkdir -p ~/.vim/colors
- cd ~/.vim/colors
wget https://github.com/jnurmine/Zenburn/blob/master/colors/zenburn.vim
Zenburn colors: zenburn.vim
Exit without save
- Escape
- :q!
Save and exit
- Escape
- :wq
Insert
- Escape
- Place cursor
- Press i
Delete line
- Escape
- Place cursor
- Press dd
Delete character
- Escape
- Place cursor
- Press x
Undo
- Escape
- Press u
Copy
- Escape
- Place cursor on start
- Press v
- Select with cursor
- Press y
Cut
- Escape
- Place cursor on start
- Press v
- Select with cursor
- Press d
Paste
- Escape
- Place cursor on destination
- Press p
Search and replace all occurrences
- Escape
- :%s/oldString/newString/g
Search
- Escape
- /searchPatern
go to previous and next with n and p
Vi settings
Settings are saved in ~/.exrc. For OpenSolaris/OpenIndiana
set number set showmode
Add extension wsgi
File /usr/share/vim/vim74/filetype.vim in Ubuntu 14.04 LTS (Trusty).
#line 1577 in Ubuntu au BufNewFile,BufRead *.py,*.pyw,*.wsgi setf python
vimrc with key mappings
set t_Co=256 set nocompatible colors zenburn filetype plugin on filetype indent on set tabstop=4 set shiftwidth=4 set expandtab map <M-left> :previous<cr> map <M-right> :next<cr> map <C-s> :w<cr> map <F4> :qa!<cr> map <F1> :sh<cr> set number map! <F6> <C-R>=strftime('%Y-%m-%dT%H:%M:%S')<cr> map <C-v> p map <C-u> u map <F5> :edit!<cr> map <F7> gg=G map <F3> / map <C-b> v map <C-c> y map <C-a> ggVG