how is your vim setup look like fämälämäzöids? also share .vimrc if you want mine is set guifont=inconsolata:h11 set t_Co=256 set background=dark set tabstop=4 set shiftwidth=4 set smartindent set number set cursorline set showcmd set showmatch set incsearch set hlsearch
colorscheme gruvbox
syntax on
maybe rudamentary but it is good enough tbrqhwyf
Oliver Robinson
...
Camden Rogers
Pretty basic because I only use Vim for quick edits.
" Allow project specific configs set exrc set secure
" Tab configuration set tabstop=4 set softtabstop=4 set shiftwidth=4 set noexpandtab
" Ruler set colorcolumn=120 highlight ColorColumn ctermbg=darkred
" Pathogen execute pathogen#infect()
" Color scheme colorscheme heroku colors heroku
" Syntax syntax on filetype plugin indent on
" Gutter set number
" Remove some UI bloat set guioptions-=m set guioptions-=T set guioptions-=r set guioptions-=L
" Keyboard shortcuts map :browse confirm e
Jose Rodriguez
set number syntax on
Landon Cooper
let mapleader = " "
Asher Baker
why not used vim for more?
Jose Richardson
>UI bloat >vim What are you doing?
Logan Parker
it's easy, I use nvi.
Luis Peterson
>nigger vi get out of my thread
Connor Ortiz
It looks like visual studio code because I actually get work done instead of circle jerking in a terminal to write fizz buzzers and prime sieves. >Inb4 comments on cursor blinking
Joshua Gray
gruvbox master race
Justin Sanders
Because it's a clusterfuck of an editor.
I used to use gVIM because I wanted to use a different font in my terminal and when editing text but now I use the same so it no longer applies.
Evan Walker
A lot of this I took from "Learn Vimscript the hard way" which I'd strongly recommend
" macro for quickly switching to ~/.vimrc file :nnoremap ev :vsplit $MYVIMRC
" macro to quickly source ~/.vimrc file so you don't need " to restart vim after adding a macro (such as with ev macro) nnoremap sv ma:silent! source $MYVIMRC'azz
" macro to surround any selected text with double quotes " doesn't work with block selections (but why would you put " quotes around a block anyways?) vnoremap " di""p
" add {...} block around block of visually selected text " only works in visual line or normal mode vnoremap { c{}pkva{= nnoremap { cc{}pkva{=
" quick exit out of insert mode inoremap jk
" disable normal esc function so you can learn jk inoremap
" Re-enable instead of jk when jk must be used (ie "Dijkstra") nnoremap k :iunmap :iunmap jk
" Macros for easily adding comments autocmd FileType cpp vnoremap c :s!\(^\s*\)!\1// !:noh autocmd FileType cpp nnoremap c I//
Some of this could use some refactoring. I wrote half of these yesterday.
David Moore
I know vi is pronounced "vee eye", but is vim "vee eye em"?
Josiah Carter
Just pronounce it like "him" but with a v instead of h
filetype plugin indent on syntax on set number set undofile set laststatus=2 if !has('gui_running') set t_Co=256 endif set encoding=utf-8 scriptencoding utf-8 set exrc set secure set tabstop=4 set softtabstop=4 set shiftwidth=4 set noexpandtab set colorcolumn=120
no ddp no no no ddkP ino ino ino ino vno vno vno vno ino color badwolf set cursorcolumn set cursorline set t_Co=256
Wow I have a lot of things commented out. I need to clean up my .vimrc.
Christopher Reed
" BASIC SETUP: " enter the new millenium set nocompatible " enable plugins filetype plugin on
" PERSONAL MAPPINGS: " save file nnoremap :w inoremap :wi " exit nnoremap :q inoremap :q " leader let mapleader = "¿" " localleader let maplocalleader = "\\" " edit vimrc file nnoremap ev :vsplit $MYVIMRC " source vimrc file nnoremap sv :source $MYVIMRC
" TEXT AUTOCORRECTION AND EXPANSIONS: iabbrev teh the iabbrev waht what iabbrev aslo also iabbrev @@ [email protected]
" TEXT SNIPPETS: " Read an HTML template and move cursor to title nnoremap html :-1read $HOME/.vim/snippets/skeleton.html3jwf>a " NOW WE CAN: " - html for HTML snippet " - can be used to create more snippets
" COSMETIC CHANGES: " enable syntax highlightening syntax enable " colorscheme colorscheme basal " toolbar set ruler " line wrap set wrap " when wrapping, don't break words set linebreak " indent using previously indented line as example set autoindent " indent C-like syntax set smartindent " set line number for current line and relative number to the rest "set number relativenumber
" TAB COMPLETION: " enable spellchecking "set spell " match dictionary words for completion set complete+=kspell
" FINDING FILES: " Search down into subfolders " Provides tab-completion for all file-related tasks set path+=** " Display all matching files when we tab complete set wildmenu " NOW WE CAN: " - Hit tab to :find by partial match " - use * to make it fuzzy " - :b lets you autocomplete any buffer
" TAG JUMPING: " - This doesn't help if you want a visual list of tags " Create the 'tags' file (may need to install ctags first) command! MakeTags !ctags -R . " NOW WE CAN: " - Use ^] to jump to tag under cursor " - Use g^] for ambiguous tags " - Use ^t to jump back up the tag stack
Too large, splitting
Ryan Lewis
cont.
" AUTOCOMPLETE: " Already set with the tags file " The good stuff is documented in |ins-completion|
" HIGHLIGHTS: " - ^x^n for JUST this file " - ^x^f for filenames (woks with our path trick!) " - ^x^] for tags only " - ^n for anything specified by the 'complete' option " - Use ^n and ^p to go back and forth in the suggestion list
" ELEMENT INSPECTOR: " Show syntax highlighting groups for word under cursor " Use ctrl-shift-p to reveal the syntax groups to which the element belongs nmap :call SynStack() function! SynStack() if !exists("*synstack") return endif echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') endfunc
" FILE BROWSING: " Tweaks for browsing let g:netrw_banner=0 " disable annoying banner let g:netrw_browse_split=4 " open in prior window let g:netrw_altv=1 " open splits to the right let g:netrw_liststyle=3 " tree view let g:netrw_list_hide=netrw_gitignore#Hide() let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+' " NOW WE CAN: " - :edit a folder to open a file browser " - /c/t to open in an h-split/v-split/tab " - check |netrw-browse-maps| for more mappings
Logan Cruz
>syntax on
Carson Bennett
Pretty basic syntax off filetype plugin indent on
set tabstop=4 set shiftwidth=4 set shiftwidth=4 set expandtab
set number set showmatch set incsearch
Ryan Scott
What's wrong with that?
Liam Young
Probably C-fag mentality.
"Hurrr, you made things easier for yourself, you're dumb lol. Look how smart I am for doing things the hard way!"
Caleb Harris
here's my vim
Jackson Mitchell
>C-fag mentality >doing things the hard way you can only chose one
Aiden Kelly
"I don't understand it, so it must be harder/useless"
Isaiah Kelly
Is this VS code?
Jeremiah Harris
VS code with Operator Mono and some text theme i forgot the name of
Colton Perry
dude what language is that? genuine, if stupid, question
syntax on set cindent set mouse=a colo default autocmd FileType javascript colo elflord autocmd BufEnter *.html,*.ejs colo delek autocmd BufNewFile,BufRead *.ejs set filetype=html
noremap noremap noremap noremap
filetype plugin indent on autocmd FileType html setlocal shiftwidth=2 tabstop=2 autocmd FileType css setlocal shiftwidth=2 tabstop=2 autocmd FileType javascript setlocal shiftwidth=2 tabstop=2 softtabstop=2 autocmd FileType php setlocal shiftwidth=2 tabstop=2 autocmd Filetype python setl sw=5 sts=5 et autocmd Filetype java setl sw=5 sts=5 et autocmd Filetype scss setl sw=5 sts=5 et
set hidden set incsearch set textwidth=70 nmap Oj nmap ok
let g:netrw_liststyle=3 map :NERDTreeToggle :au Filetype json setl sw=5 sts=5 tabstop=5 et
augroup json_autocmd autocmd! autocmd FileType json set autoindent autocmd FileType json set formatoptions=tcq2l autocmd FileType json set textwidth=78 shiftwidth=4 autocmd FileType json set softtabstop=4 tabstop=4 autocmd FileType json set expandtab autocmd FileType json set foldmethod=syntax