etc.dipanjan

Friday, March 2, 2018

VIM commands and tidbits


Stop auto-indenting dammit!
http://vim.wikia.com/wiki/How_to_stop_auto_indenting


Search it
http://vim.wikia.com/wiki/Search_and_replace


change font size
:set guifont=Menlo:h12

Install amsmath support for vim
https://tex.stackexchange.com/questions/416030/how-do-i-make-vim-highlight-math-properly-in-the-align-environment


search and replace:
s/foo/bar/g
Find each occurrence of 'foo' (in the current line only), and replace it with 'bar'.
:%s/foo/bar/gc
Change each 'foo' to 'bar', but ask for confirmation first.
https://vim.fandom.com/wiki/Search_and_replace





Posted by Dot at 1:58 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2022 (1)
    • ►  April (1)
  • ►  2020 (1)
    • ►  January (1)
  • ►  2019 (2)
    • ►  December (1)
    • ►  August (1)
  • ▼  2018 (3)
    • ►  April (2)
    • ▼  March (1)
      • VIM commands and tidbits
  • ►  2017 (3)
    • ►  May (1)
    • ►  March (2)
  • ►  2016 (1)
    • ►  June (1)
  • ►  2015 (3)
    • ►  November (1)
    • ►  August (1)
    • ►  February (1)
  • ►  2014 (2)
    • ►  July (1)
    • ►  January (1)
  • ►  2013 (1)
    • ►  March (1)
  • ►  2012 (10)
    • ►  August (1)
    • ►  July (1)
    • ►  May (3)
    • ►  April (1)
    • ►  March (2)
    • ►  January (2)
  • ►  2011 (13)
    • ►  November (1)
    • ►  August (1)
    • ►  March (1)
    • ►  February (7)
    • ►  January (3)

About Me

My photo
Dot
Dot dot dot
View my complete profile
Ethereal theme. Powered by Blogger.