diff options
author | Max Christian Pohle | 2016-05-25 12:24:43 +0200 |
---|---|---|
committer | Max Christian Pohle | 2016-05-25 12:24:43 +0200 |
commit | bcf8550afc38a4005f9c53e8a2c4af879e04831b (patch) | |
tree | 1028046d2fe8bd907869086dc4fe6a0cbcab00c3 | |
parent | fe89b5671d65560b57d51485789c23c38885e28d (diff) | |
download | vim-karlmarks-bcf8550afc38a4005f9c53e8a2c4af879e04831b.tar.bz2 vim-karlmarks-bcf8550afc38a4005f9c53e8a2c4af879e04831b.zip |
added more plugins and removed symbol bar in gvim
new features introduced by plugins
* quick navigation:
\b - switch between buffer
\\w or \\f for faster cursor placement
* vimshell:
:new | VimShell
* quote replacement like
:cs"'
-rw-r--r-- | doc/shortcuts.txt | 4 | ||||
-rw-r--r-- | vimrc | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/doc/shortcuts.txt b/doc/shortcuts.txt index 4e49e6d..1432837 100644 --- a/doc/shortcuts.txt +++ b/doc/shortcuts.txt | |||
@@ -3,6 +3,10 @@ leader key = usually set to backslash expects a quick command | |||
3 | 3 | ||
4 | [normal mode] | 4 | [normal mode] |
5 | f{char} = move cursor to the character {char} | 5 | f{char} = move cursor to the character {char} |
6 | gf = open file under cursor | ||
7 | <C-w>gf = open file under cursor in a tab | ||
8 | |||
9 | |||
6 | 10 | ||
7 | 11 | ||
8 | [visual mode] # with selected lines | 12 | [visual mode] # with selected lines |
@@ -23,8 +23,11 @@ Plugin 'gregsexton/matchtag' | " highlights closing ML | |||
23 | Plugin 'indenthtml.vim' | " works better with mixed html/css/javascript | 23 | Plugin 'indenthtml.vim' | " works better with mixed html/css/javascript |
24 | Plugin 'easymotion/vim-easymotion' | " speed up navigation: try \\w or \\f, then one of the highlighted chars | 24 | Plugin 'easymotion/vim-easymotion' | " speed up navigation: try \\w or \\f, then one of the highlighted chars |
25 | Plugin 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' | 25 | Plugin 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' |
26 | Plugin 'Shougo/vimproc.vim' | ||
27 | Plugin 'Shougo/vimshell.vim' | ||
28 | Plugin 'jeetsukumaran/vim-buffergator' | " switch buffers with \b or <\-Left> <\-Right> | ||
26 | 29 | ||
27 | 30 | let g:airline_powerline_fonts = 1 | |
28 | 31 | ||
29 | let Tlist_Compact_Format = 1 | " | 32 | let Tlist_Compact_Format = 1 | " |
30 | let Tlist_GainFocus_On_ToggleOpen = 1 | " | 33 | let Tlist_GainFocus_On_ToggleOpen = 1 | " |
@@ -85,6 +88,7 @@ set spell spelllang=en,de | " enable spell checker | |||
85 | set virtualedit=onemore | " one character beyond the line length should be navigatable (options: all,insert,block,onemore) | 88 | set virtualedit=onemore | " one character beyond the line length should be navigatable (options: all,insert,block,onemore) |
86 | set breakindent cpoptions+=n | " when wrapping lines indent wrapped line to align with the previews | 89 | set breakindent cpoptions+=n | " when wrapping lines indent wrapped line to align with the previews |
87 | set linebreak | " do not wrap in the middle of words | 90 | set linebreak | " do not wrap in the middle of words |
91 | set display+=lastline | " do not show the @ symbol in the end of a long line | ||
88 | set showcmd | " displays status line messages while selecting (matrix size) | 92 | set showcmd | " displays status line messages while selecting (matrix size) |
89 | set nofoldenable | " do not fold code automatically | 93 | set nofoldenable | " do not fold code automatically |
90 | set tags+=~/.vim/systags | " ctags -R -f ~/.vim/systags /usr/include /usr/local/include | 94 | set tags+=~/.vim/systags | " ctags -R -f ~/.vim/systags /usr/include /usr/local/include |
@@ -105,6 +109,8 @@ set laststatus=2 | " this is required for airline | |||
105 | set cmdheight=1 | " controls how many lines the command line has | 109 | set cmdheight=1 | " controls how many lines the command line has |
106 | set relativenumber | " displays current lines line no as zero point from where relative numbers are getting counted | 110 | set relativenumber | " displays current lines line no as zero point from where relative numbers are getting counted |
107 | 111 | ||
112 | set splitbelow | " open new windows below the current one (i find that more intuitive) | ||
113 | |||
108 | if has("multi_byte") | 114 | if has("multi_byte") |
109 | set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below) | 115 | set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below) |
110 | scriptencoding utf-8 | " tell vim that we are using utf-8 here | 116 | scriptencoding utf-8 | " tell vim that we are using utf-8 here |
@@ -159,10 +165,10 @@ endif | |||
159 | if has("gui_running") | 165 | if has("gui_running") |
160 | set mouse=a | " use mouse in gui-mode (which is default) | 166 | set mouse=a | " use mouse in gui-mode (which is default) |
161 | set mouseshape+=n:beam,v:beam | " display a text input cursor even in normal and selection mode | 167 | set mouseshape+=n:beam,v:beam | " display a text input cursor even in normal and selection mode |
162 | set guicursor=n-v-c:ver30-Cursor-blinkon500-blinkoff500 | " how the caret looks like | 168 | set guicursor=n-v-c:ver20-Cursor-blinkon500-blinkoff500 | " how the caret looks like |
163 | set guitablabel=%t | " do not display full path as tabname | 169 | set guitablabel=%t | " do not display full path as tabname |
164 | set guioptions+=m | " menu bar | 170 | set guioptions+=m | " menu bar |
165 | set guioptions+=T | " toolbar | 171 | set guioptions-=T | " toolbar |
166 | set guioptions+=r | " right-hand scroll bar | 172 | set guioptions+=r | " right-hand scroll bar |
167 | set guioptions-=c | " use console dialogs instead of popups | 173 | set guioptions-=c | " use console dialogs instead of popups |
168 | set guioptions+=a | " autoselect: copy&paste using middleclick | 174 | set guioptions+=a | " autoselect: copy&paste using middleclick |