Skip to content

ahsanur/dot-files

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VIM IDE

Install the plugins by running the following commands in the root of the repository :

  1. git sudmodule init
  2. git submodule update

Recommended Dependencies

  1. exuberant-ctags: For tag-view with IDE.
  2. rubber : For better compilation for Latex.

Gneral IDE Requirements

  1. View file structure : Uses NerdTree. Enable/Disable tree : <C-t>

  2. File search : <Ctrl>p

  3. Programming Tag views : <C-v>

Python mode configurations

  1. To enable code completion/ import completion you need to set up a project. To set up a project in the project folders (can be the top level) in a vim session type :RopeOpenProject. It will create the config.py where you can add options such as files to ignore, warnings to ignore, etc.

  2. To enable debugging you need to install ipdb

    pip install ipdb

Cheat Sheet

List of some commands according to the .vimrc present

  • Code Completion: <Ctrl><space>

  • Folding code:

    • Only one block: ,f
    • All the blocks: ,F
  • Goto definition : ,g

  • Breakpoint :

    • Insert breakpoint : ,b
    • step into : s
    • next line : n
    • next breakpoint : c
    • step up : up
    • help : ?
  • Sorting Imports : Visual mode selction and <Ctrl>i

  • IPython notebook mode:

    • Start Ipython : ipython console'
    • From vim : :IPython
    • Run full file : F5
    • Run selection : F9

TMUX Configurations

Prefix key is C-q

c # create a new window
, # name the window (test, vim, console, log, etc.)
" # split pane horizontally
% # split pane vertically
j (or k) # move up or down a pane
h (or l) # move left or right a pane
x # kill a pane or window
# move to window
n (or p) # move to next (or previous) window
l # move to previously selected window
f # find window by name
Alt+ # Resize Windows left/right/etc.

Session management

attach (or a) # attaches a session
detach (or d) # detaches a session
kill-session -t <session id>
rename-session -t <old> <new>

Latex Configurations

`` = ; Specify master file for each subfile : use modeline

  ``% mainfile: "MASTER_FILE"``

By default uses pdflatex. To use latex/rubber set g:tex_flavor = "latex"/"rubber"

  1. Insert mode:

    <LocalLeader><LocalLeader>          <LocalLeader>
    <LocalLeader>K                      Dictionary completion
    <LocalLeader>M                      Maths completion 
    <LocalLeader>C                      Insert a citation
    <LocalLeader>B                      Insert an environment
    <LocalLeader>R                      Insert a reference
  1. Normal Mode:

    <F1>                                Insert a template file
    <C-F>                               Jump to next \\(begin|end)
    <C-B>                               Jump to previous \\(begin|end)
    gd                                  Goto label's declaration
    gb                                  Goto citekey's declaration
    <LocalLeader>k                      Small compile
    <LocalLeader>K                      Big compile
    <LocalLeader>V                      View the document
    <C-LeftMouse>                       SyncTeX: Forward search
    <LocalLeader>Q                      View the quickfix window
    <LocalLeader>U                      Update the BibTeX database(s)

About

dot-files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 98.9%
  • Other 1.1%