mirror of https://github.com/akelge/zsh
117 lines
2.9 KiB
VimL
117 lines
2.9 KiB
VimL
"
|
|
" General Setup
|
|
"
|
|
" $Id$
|
|
|
|
set nocompatible " Use Vim defaults (much better!)
|
|
set backspace=indent,eol,start " allow backspacing over everything
|
|
set noautoindent
|
|
set textwidth=78
|
|
set backup
|
|
set viminfo='20,\"50,f10
|
|
set history=50
|
|
set nohlsearch
|
|
set paste
|
|
|
|
set ruler
|
|
set cmdheight=1
|
|
set laststatus=2
|
|
set shiftwidth=2
|
|
set nofoldenable
|
|
set tabstop=4
|
|
set softtabstop=4
|
|
set expandtab
|
|
|
|
set background=dark
|
|
set title
|
|
|
|
set browsedir=buffer
|
|
set cpoptions=aAcF$
|
|
set modeline
|
|
set modelines=1
|
|
set encoding=utf-8
|
|
set listchars=tab:->,trail:.,eol:$
|
|
set smartcase
|
|
set errorbells
|
|
"set visualbell
|
|
set showcmd " Show (partial) command in status line.
|
|
set showmatch " Show matching brackets.
|
|
set ignorecase " Do case insensitive matching
|
|
set incsearch " Incremental search
|
|
set autowrite " Automatically save before commands like :next and :make
|
|
set statusline=%<%f\ %H%m%r%=%-14.(%l,%c%)\ %P\ Buf.%n
|
|
set backupcopy=yes
|
|
set fileformats=unix,mac,dos
|
|
set fileformat=unix
|
|
set mouse=a
|
|
colorscheme torte
|
|
|
|
" """""""""""""""""""""""""
|
|
" COMPLETION & INDENTATION
|
|
" """""""""""""""""""""""""
|
|
set completeopt=longest,menu
|
|
" Map C-Tab to complete
|
|
inoremap <silent> <C-tab> ^N
|
|
|
|
" Emacs like indenting. Pressing Tab indents line
|
|
set indentkeys==0{,0},0),:,0#,!^F,o,O,e,!<Tab>,!^F
|
|
set cinkeys==0{,0},0),:,0#,!^F,o,O,e,!<Tab>,!^F
|
|
|
|
" Suffixes that get lower priority when doing tab completion for filenames.
|
|
"" These are files we are not likely to want to edit or read.
|
|
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
|
|
|
|
|
|
" """""""""""""""
|
|
" TagLIST support
|
|
" """""""""""""""
|
|
"let Tlist_Ctags_Cmd="/opt/local/bin/ctags"
|
|
let Tlist_Exit_OnlyWindow = 1
|
|
let Tlist_File_Fold_Auto_Close = 1
|
|
"let Tlist_Use_SingleClick = 0 "Do not use yet
|
|
let Tlist_Use_Right_Window = 1
|
|
let Tlist_Display_Prototype = 0
|
|
let Tlist_Compact_Format = 1
|
|
|
|
" """"""""
|
|
" NERDTree
|
|
" """"""""
|
|
let NERDTreeIgnore=['\.vim$', '\~$', '\.pyc']
|
|
let NERDTreeShowBookmarks=1
|
|
|
|
" """""""""""
|
|
" BufExplorer
|
|
" """""""""""
|
|
let g:bufExplorerSplitBelow=1
|
|
let g:bufExplorerResize=1
|
|
|
|
|
|
" """""""""""""""""""""
|
|
" Map keys to functions
|
|
" """""""""""""""""""""
|
|
let mapleader = "\\"
|
|
"let mapleader = ","
|
|
nnoremap <silent> <Leader>l :set list!<CR>
|
|
nnoremap <silent> <Leader>f :set fullscreen!<CR>
|
|
nnoremap <silent> <Leader>n :NERDTreeToggle<CR>
|
|
nnoremap <silent> <Leader>t :Tlist<CR>
|
|
nnoremap <silent> <Leader>N :set number!<CR>
|
|
nnoremap <silent> <Leader>b :HSBufExplorer<CR>
|
|
map <silent> <Leader>c <plug>NERDCommenterToggle
|
|
|
|
" Vim5 comes with syntaxhighlighting. If you want to enable syntaxhightlighting
|
|
" by default uncomment the next three lines.
|
|
if has("syntax")
|
|
syntax on " Default to no syntax highlightning
|
|
endif " has("syntax")
|
|
|
|
if has("autocmd")
|
|
filetype plugin indent on
|
|
filetype plugin on
|
|
" When editing a file, always jump to the last cursor position
|
|
autocmd BufReadPost *
|
|
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
|
|
\ exe "normal g'\"" |
|
|
\ endif
|
|
endif
|