-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfastvimrc
More file actions
68 lines (56 loc) · 1.88 KB
/
Copy pathfastvimrc
File metadata and controls
68 lines (56 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
" Simplest vimrc for fast startup
" use proper VI Improved
set nocompatible
" Syntax
syntax enable
filetype plugin on
" Find Files
set path+=**
" Display matching pattern
set wildmenu
" Tweks file browsing
" let g:netrw_banner=-1 "Disable banner
let g:netrw_browse_split=4 " Open in prior window
let g:netrw_altv=1 " Open split to the right
let g:netrw_liststyle=3 " Tre view
" let g:netrw_list_hide=netrw_gitignore#Hide()
" let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
" From ~/.vimrc
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set hlsearch
set number
colorscheme pablo
"=================================================================
"=================== Setting Up Tab size ========================
"=================================================================
set smartindent
set noexpandtab
"set expandtab
set copyindent
set preserveindent
set shiftwidth=4
set softtabstop=0
set shiftwidth=4
set tabstop=4
set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:.
"=================================================================
"=================== Setting Up temp file ========================
"=================================================================
" controls where backup files (with ~ extension by default) go.
set backupdir=~/.vim/vimtmp
" The 'directory' option controls where swap files go.
set directory=~/.vim/vimtmp
"=================================================================
"=================== Useful Keybindings ==========================
"=================================================================
"This unsets the "last search pattern" register by hitting return
nnoremap <CR><CR> :noh<CR><CR>
"remap to save file with ctr+s
inoremap <C-s> <esc>:w<cr>
nnoremap <C-s> :w<cr>
" Easier moving of code Blocks
" better indetation
vnoremap < <gv
vnoremap > >gv