Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " windows specific settings:
- " enable syntax highlighting
- syntax on
- " recognize ascript as javascript syntax
- au BufReadPost *.as set syntax=javascript
- "auto indent in if statements etc
- :set smartindent
- " auto copy selection (to clipboard)
- :set guioptions+=a
- " enable backspace in insert mode
- set backspace=2
- set backspace=indent,eol,start
- " set font
- if has("gui_running")
- if has("gui_gtk2")
- set guifont=Inconsolata\ 12
- elseif has("gui_macvim")
- set guifont=Menlo\ Regular:h14
- elseif has("gui_win32")
- set guifont=Consolas:h11:cANSI
- endif
- endif
- " timestamp map
- nmap <F2> i<C-R>=strftime("//j9 @ %Y-%m-%d: ")<CR><Esc>
- imap <F2> <C-R>=strftime("//j9 @ %Y-%m-%d: ")<CR>
- " line break map
- nmap <F3> i<C-R>///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<CR><Esc>
- imap <F3> <C-R>///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<CR>
- "fill line function
- map <F12> 180A/<Esc>d180|
- set packpath+=~/.vim/pack/
- set t_Co=256 " This is may or may not needed.
- set background=light
- " line numbers
- set number
- " status bars
- set laststatus=2
- " use x clipboard
- set clipboard=unnamedplus
- "
- set relativenumber
- " cursor scrolls
- set mouse=a
- " keep folds
- autocmd BufWinLeave *.* mkview
- autocmd BufWinEnter *.* silent loadview
- " write file with root permissions: w!!
- cmap w!! w !sudo tee > /dev/null %et ignorecase
- " disable sound error
- " flash screen on error
- " set visualbell
- " disable error sound
- set noerrorbells
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement