Why should I use an IDE? [closed]

It really depends on what language you’re using, but in C# and Java I find IDEs beneficial for: Quickly navigating to a type without needing to worry about namespace, project etc Navigating to members by treating them as hyperlinks Autocompletion when you can’t remember the names of all members by heart Automatic code generation Refactoring … Read more

Vim 80 column layout concerns

As of vim 7.3, you can use set colorcolumn=80 (set cc=80 for short). Since earlier versions do not support this, my .vimrc uses instead: if exists(‘+colorcolumn’) set colorcolumn=80 else au BufWinEnter * let w:m2=matchadd(‘ErrorMsg’, ‘\%>80v.\+’, -1) endif See also the online documentation on the colorcolumn option.

Changing Vim indentation behavior by file type

You can add .vim files to be executed whenever vim switches to a particular filetype. For example, I have a file ~/.vim/after/ftplugin/html.vim with this contents: setlocal shiftwidth=2 setlocal tabstop=2 Which causes vim to use tabs with a width of 2 characters for indenting (the noexpandtab option is set globally elsewhere in my configuration). This is … Read more

Replace tabs with spaces in vim

Once you’ve got expandtab on as per the other answers, the extremely convenient way to convert existing files according to your new settings is: :retab It will work on the current buffer.

Paste in insert mode?

While in insert mode hit CTRL-R {register} Examples: CTRL-R * will insert in the contents of the clipboard CTRL-R ” (the unnamed register) inserts the last delete or yank. To find this in vim’s help type :h i_ctrl-r

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)