diff options
| -rw-r--r-- | vim.desktop | 11 | ||||
| -rw-r--r-- | vimrc | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/vim.desktop b/vim.desktop new file mode 100644 index 0000000..3d52f9b --- /dev/null +++ b/vim.desktop | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | [Desktop Entry] | ||
| 2 | Type=Application | ||
| 3 | Name=Vi IMproved->buffer | ||
| 4 | Icon=gvim | ||
| 5 | Comment=Open file in an existing instance of vi and in a new tab | ||
| 6 | MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; | ||
| 7 | Exec=bash -c "~/.bashrc ; vim --servername VIM --remote-silent %F" | ||
| 8 | Terminal=true | ||
| 9 | X-XClassHintResName=VIM | ||
| 10 | Categories=Utility;TextEditor; | ||
| 11 | X-Desktop-File-Install-Version=0.23 | ||
| @@ -179,7 +179,8 @@ set hlsearch | " highlights all search matches (not as performa | |||
| 179 | set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained | 179 | set ignorecase smartcase | " search with ignorecase by default, but use case sensitive search when one captical char is contained |
| 180 | set lazyredraw | " disables redraw during macro exectution (improves performance) | 180 | set lazyredraw | " disables redraw during macro exectution (improves performance) |
| 181 | set linebreak | " wrap long lines at char 'breakat', not inside words | 181 | set linebreak | " wrap long lines at char 'breakat', not inside words |
| 182 | set mouse=a | " also supported by vim, should be default | 182 | set mouse=n | " allow mouse in normal mode only, so one can use the terminals c&p feature in insert mode |
| 183 | set mousemodel=popup | " only in gvim: right click opens a popup-menu | ||
| 183 | set nocursorcolumn | " turn visual cursor column off (improves performance) | 184 | set nocursorcolumn | " turn visual cursor column off (improves performance) |
| 184 | set nocursorline | " turn visual cursor line off (improves performance) | 185 | set nocursorline | " turn visual cursor line off (improves performance) |
| 185 | set nofoldenable | " disable code folding. I hate code folding | 186 | set nofoldenable | " disable code folding. I hate code folding |
| @@ -191,6 +192,7 @@ set nowrap | " but do not (by default) wrap long lines around | |||
| 191 | set number | " turn line numbers on/off (performance decreases when they are shown) | 192 | set number | " turn line numbers on/off (performance decreases when they are shown) |
| 192 | set pumheight=8 | " Determines the maximum number of items to show in the popup menu for | 193 | set pumheight=8 | " Determines the maximum number of items to show in the popup menu for |
| 193 | set redrawtime=400 | " The time in milliseconds for redrawing the display. | 194 | set redrawtime=400 | " The time in milliseconds for redrawing the display. |
| 195 | set restorescreen | " restores the console after exiting vim | ||
| 194 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge | 196 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge |
| 195 | set spell spelllang=en,de | " enable spell checker | 197 | set spell spelllang=en,de | " enable spell checker |
| 196 | set splitbelow | " open new windows below the current one (i find that more intuitive) | 198 | set splitbelow | " open new windows below the current one (i find that more intuitive) |
| @@ -208,6 +210,7 @@ set writedelay=0 | |||
| 208 | if has("multi_byte") | 210 | if has("multi_byte") |
| 209 | scriptencoding utf-8 | " tell vim that we are using utf-8 here | 211 | scriptencoding utf-8 | " tell vim that we are using utf-8 here |
| 210 | set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below) | 212 | set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below) |
| 213 | set termencoding=&encoding | " once we use special chars we assume everybody uses a terminal supporting those | ||
| 211 | set listchars=eol:↲ | " symbols used when using :set list (which displays non-printable chars) | 214 | set listchars=eol:↲ | " symbols used when using :set list (which displays non-printable chars) |
| 212 | set listchars+=extends:» | " symbols used when using :set list (which displays non-printable chars) | 215 | set listchars+=extends:» | " symbols used when using :set list (which displays non-printable chars) |
| 213 | set listchars+=precedes:« | " symbols used when using :set list (which displays non-printable chars) | 216 | set listchars+=precedes:« | " symbols used when using :set list (which displays non-printable chars) |
| @@ -227,6 +230,7 @@ if has("gui_running") | |||
| 227 | " set guifont=Droid\ Sans\ Mono\ for\ Powerline\ 12 | 230 | " set guifont=Droid\ Sans\ Mono\ for\ Powerline\ 12 |
| 228 | set guifont=Dejavu\ Sans\ Mono\ for\ Powerline\ 12 | 231 | set guifont=Dejavu\ Sans\ Mono\ for\ Powerline\ 12 |
| 229 | set guioptions-=e | " do not display tabs | 232 | set guioptions-=e | " do not display tabs |
| 233 | set winaltkeys=menu | " behave like other windows: ALT-key can be used to open the menu (and cannot be :remaped) | ||
| 230 | endif | 234 | endif |
| 231 | 235 | ||
| 232 | if bufname('%') == '' | 236 | if bufname('%') == '' |
