mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
vimrc: little cleaning
This commit is contained in:
parent
3144ffd599
commit
1ddbc2b60e
31
vimrc
31
vimrc
@ -2,15 +2,10 @@
|
|||||||
set nocompatible
|
set nocompatible
|
||||||
|
|
||||||
" Copied from /usr/local/vim/vimrc of Debian.
|
" Copied from /usr/local/vim/vimrc of Debian.
|
||||||
" This should read Debian default config files too.
|
|
||||||
runtime! debian.vim
|
|
||||||
|
|
||||||
" Vim5 and later versions support syntax highlighting. Uncommenting the next
|
" Show syntax colours
|
||||||
" line enables syntax highlighting by default.
|
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
" The following are commented out as they cause vim to behave a lot
|
|
||||||
" differently from regular Vi. They are highly recommended though.
|
|
||||||
set showcmd " Show (partial) command in status line.
|
set showcmd " Show (partial) command in status line.
|
||||||
set showmatch " Show matching brackets.
|
set showmatch " Show matching brackets.
|
||||||
set ignorecase " Do case insensitive matching
|
set ignorecase " Do case insensitive matching
|
||||||
@ -28,6 +23,7 @@ endif
|
|||||||
" end of copied from /usr/local/vim/vimrc
|
" end of copied from /usr/local/vim/vimrc
|
||||||
|
|
||||||
" Copied from nyuszika7h http://nyuszika7h.dyndns.org/~nyuszika7h/.vimrc
|
" Copied from nyuszika7h http://nyuszika7h.dyndns.org/~nyuszika7h/.vimrc
|
||||||
|
|
||||||
set number " Show line numbers.
|
set number " Show line numbers.
|
||||||
|
|
||||||
set ruler " Show the line and column number of the cursor position,
|
set ruler " Show the line and column number of the cursor position,
|
||||||
@ -40,21 +36,10 @@ set background=dark " When set to "dark", Vim will try to use colors that look
|
|||||||
|
|
||||||
" end of copied from nyuszika7h
|
" end of copied from nyuszika7h
|
||||||
|
|
||||||
|
|
||||||
"Use modelines!
|
"Use modelines!
|
||||||
set modeline
|
set modeline
|
||||||
|
|
||||||
" Copied from http://vim.wikia.com/wiki/Modeline_magic
|
|
||||||
" Append modeline after last line in buffer.
|
|
||||||
" Use substitute() instead of printf() to handle '%%s' modeline in LaTeX
|
|
||||||
" files.
|
|
||||||
function! AppendModeline()
|
|
||||||
let l:modeline = printf(" vim: set ts=%d sw=%d tw=%d :",
|
|
||||||
\ &tabstop, &shiftwidth, &textwidth)
|
|
||||||
let l:modeline = substitute(&commentstring, "%s", l:modeline, "")
|
|
||||||
call append(line("$"), l:modeline)
|
|
||||||
endfunction
|
|
||||||
nnoremap <silent> <Leader>ml :call AppendModeline()<CR>
|
|
||||||
|
|
||||||
"end of copied fron vimwiki.
|
"end of copied fron vimwiki.
|
||||||
|
|
||||||
" copied from http://www.linuxquestions.org/questions/suse-novell-60/how-to-make-a-tab-is-4-spaces-width-in-vim-355658/
|
" copied from http://www.linuxquestions.org/questions/suse-novell-60/how-to-make-a-tab-is-4-spaces-width-in-vim-355658/
|
||||||
@ -68,9 +53,6 @@ set autoindent
|
|||||||
|
|
||||||
" Copied from whttp://items.sjbach.com/319/configuring-vim-right
|
" Copied from whttp://items.sjbach.com/319/configuring-vim-right
|
||||||
|
|
||||||
" Set leader key as ,
|
|
||||||
let mapleader = ","
|
|
||||||
|
|
||||||
" Longer history
|
" Longer history
|
||||||
set history=1000
|
set history=1000
|
||||||
|
|
||||||
@ -89,10 +71,3 @@ set visualbell
|
|||||||
if has('gui_running')
|
if has('gui_running')
|
||||||
set background=light
|
set background=light
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has("unix")
|
|
||||||
let s:uname = system("uname")
|
|
||||||
if s:uname == "Darwin\n"
|
|
||||||
set background=light
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user