Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set et ts=4
- set sw=4
- set tw=79
- set smarttab
- set expandtab
- set autoindent
- set copyindent
- syntax on
- set nowrap
- set modeline
- set hlsearch
- set incsearch
- set mouse=a
- set showmatch
- "set number " show line numbers next to the line
- set title " show title in console title bar
- set ruler " show line and column number
- "required by Viki
- set nocompatible
- filetype plugin indent on
- "Set space to fold/unfold
- :nnoremap <space> za
- "Shortcuts for moving between tabs.
- " Alt-j to move to the tab to the left
- noremap <A-j> gT
- " Alt-k to move to the tab to the right
- noremap <A-k> gt
- "Set the Tags for the Viki
- "set tags=/home/yiannis/wiki/tags;./tags;tags;/.
- "autocmd BufWritePost /home/yiannis/wiki/* :helptags /home/yiannis/wiki
- au BufRead,BufNewFile *.txt set filetype=text
- autocmd FileType text syn match TextTag "\*[a-zA-Z]*\*"
- autocmd FileType text syn match TextJump "|[a-zA-Z]*|"
- hi def link TextTag String
- hi def link TextJump Comment
- "Set the browser
- let g:vikiOpenUrlWith_http = "exec 'silent !firefox '. escape('%{URL}', ' &!%')"
- " If using a dark background within the editing area and syntax highlighting
- " turn on this option as well
- set background=dark
- " Uncomment the following to have Vim jump to the last position when
- " reopening a file
- if has("autocmd")
- au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
- endif
- " Uncomment the following to have Vim load indentation rules and plugins
- " according to the detected filetype.
- if has("autocmd")
- filetype plugin indent on
- endif
- " Prolog over Perl :)
- au BufNewFile,BufRead *.pl set ft=prolog
- set foldcolumn=2 foldlevelstart=99 foldmethod=syntax
- "If backspace not working
- set backspace=indent,eol,start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement