Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "****************
- "AUTOCOMPLETE
- "****************
- Plugin 'ervandew/supertab'
- inoremap <tab> <c-n>
- inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
- "set ofu=syntaxcomplete#Complete
- "*****************
- "FILETYPE OPTIONS
- "*****************
- " Identify filetypes for syntax colour use
- filetype plugin indent on
- filetype indent on
- filetype plugin on
- filetype on
- syntax on
- "*****************
- "MISC
- "*****************
- " sudo write when you forgot sudo
- " from
- " https://www.reddit.com/r/linux/comments/mi80x/give_me_that_one_command_you_wish_you_knew_years/
- ca w!! w !sudo tee > /dev/null "%"
- "fix paste between vims
- set clipboard=unnamed
- "KILL WORD WRAP
- set wrap
- set linebreak
- set nolist " list disables linebreak
- set textwidth=0
- set wrapmargin=0
- "ALWAYS SHOW CURSORS POSITION
- set ruler
- " When using the UI, space it out a little more (easier to read)
- set lsp=0
- "Indicates input or replace mode at bottom
- set showmode
- "SPELL CHECK ON
- set spell
- "SHOW NEWLINES
- set list
- " Show commands when tab is hit after pressing :
- set showcmd
- "VISUAL BELL VS AUDIBLE BELL FOR ERRORS
- set visualbell
- "set novisualbell
- " Do incremental searching.
- set incsearch
- " Highlighted searches
- set hlsearch
- " Keep 500 lines of command line history.
- set history=500
- " make searches case-insensitive, unless they contain upper-case letters:
- set ignorecase
- set smartcase
- "make backspace work
- set backspace=indent,eol,start
- "tabs
- "CONVERT TABS TO SPACES
- set expandtab
- "tabs are always 3 spaces regardless of where they are in the file
- set smarttab
- set tabstop=4
- set softtabstop=4
- set shiftwidth=4
- "view tabs as a character
- set list
- set listchars=tab:>-
- "IF IN A CODING BLOCK, AUTOMATICALLY INDENT
- "LIKE {
- " CODE1
- " <auto> code2
- " }
- set cindent
- set autoindent
- " Shows the current status (insert, visual, ...) in statusline
- set showmode
Add Comment
Please, Sign In to add comment