aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2016-05-25 12:24:43 +0200
committerMax Christian Pohle2016-05-25 12:24:43 +0200
commitbcf8550afc38a4005f9c53e8a2c4af879e04831b (patch)
tree1028046d2fe8bd907869086dc4fe6a0cbcab00c3
parentfe89b5671d65560b57d51485789c23c38885e28d (diff)
downloadvim-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.txt4
-rw-r--r--vimrc12
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]
5f{char} = move cursor to the character {char} 5f{char} = move cursor to the character {char}
6gf = 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
diff --git a/vimrc b/vimrc
index 2443738..75d7aac 100644
--- a/vimrc
+++ b/vimrc
@@ -23,8 +23,11 @@ Plugin 'gregsexton/matchtag' | " highlights closing ML
23Plugin 'indenthtml.vim' | " works better with mixed html/css/javascript 23Plugin 'indenthtml.vim' | " works better with mixed html/css/javascript
24Plugin 'easymotion/vim-easymotion' | " speed up navigation: try \\w or \\f, then one of the highlighted chars 24Plugin 'easymotion/vim-easymotion' | " speed up navigation: try \\w or \\f, then one of the highlighted chars
25Plugin 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' 25Plugin 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with '
26Plugin 'Shougo/vimproc.vim'
27Plugin 'Shougo/vimshell.vim'
28Plugin 'jeetsukumaran/vim-buffergator' | " switch buffers with \b or <\-Left> <\-Right>
26 29
27 30let g:airline_powerline_fonts = 1
28 31
29let Tlist_Compact_Format = 1 | " 32let Tlist_Compact_Format = 1 | "
30let Tlist_GainFocus_On_ToggleOpen = 1 | " 33let Tlist_GainFocus_On_ToggleOpen = 1 | "
@@ -85,6 +88,7 @@ set spell spelllang=en,de | " enable spell checker
85set virtualedit=onemore | " one character beyond the line length should be navigatable (options: all,insert,block,onemore) 88set virtualedit=onemore | " one character beyond the line length should be navigatable (options: all,insert,block,onemore)
86set breakindent cpoptions+=n | " when wrapping lines indent wrapped line to align with the previews 89set breakindent cpoptions+=n | " when wrapping lines indent wrapped line to align with the previews
87set linebreak | " do not wrap in the middle of words 90set linebreak | " do not wrap in the middle of words
91set display+=lastline | " do not show the @ symbol in the end of a long line
88set showcmd | " displays status line messages while selecting (matrix size) 92set showcmd | " displays status line messages while selecting (matrix size)
89set nofoldenable | " do not fold code automatically 93set nofoldenable | " do not fold code automatically
90set tags+=~/.vim/systags | " ctags -R -f ~/.vim/systags /usr/include /usr/local/include 94set 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
105set cmdheight=1 | " controls how many lines the command line has 109set cmdheight=1 | " controls how many lines the command line has
106set relativenumber | " displays current lines line no as zero point from where relative numbers are getting counted 110set relativenumber | " displays current lines line no as zero point from where relative numbers are getting counted
107 111
112set splitbelow | " open new windows below the current one (i find that more intuitive)
113
108if has("multi_byte") 114if 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
159if has("gui_running") 165if 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
..