Skip to content

themarcel/vim-with-me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VIM(al)

Vim clone with JavaScript.

TODO's

Phase 1

  • Text area.
  • Left number column.
  • Color palette.
  • Add terminal input.
    • Creat input form.
    • Show input form only when : key is clicked.
    • Hide with Esc key.
    • Add eventListener.

Phase 2

  • Carret move.
  • Save files.
    • if file its already saved no need to put name.
    • if filename exist alert.
    • if current file progress isnt saved alert().
    • save multiple files at the same time.
    • check if any of the files haves the current progress.
  • Normal mode.
    • move carret.
  • Visual mode.
    • select words.
    • capital V for full line selection.
    • yy with visual selection yanks that selection.
  • Insert mode.
    • all keys for writing.
  • Move with h j k l.
  • Esc to exit to normal mode.
  • x to delete a character.
  • D to delete a line.
  • yy to copy a line.
  • p for paste.
  • :n name-of-file for new file
  • u to go undo.
  • gg goes to line 0.
  • G goes to end of file.
  • Cntrl + R to redo.

Phase 3

  • : to open terminal mode.
  • :%s/word/word-to-replace/g command.
  • syntax highlighting for JS.
  • Relative numbers.
  • Airline.
  • NerdTree.
  • Split screen.
  • .vimrc

Phase 4

  • Colorschemes.
  • Vimtutor.
  • LocalStorage.
  • Save in computer.
  • Open file from computer.

Daily Log

- 18/12/2020 -
Indexed all the elements on the html div container.
Added content editable to div to write.
Create the terminal input.
Add event listeners for the terminal input ( : and Esc )
Created File and Folder classes.
Added functions to save files.
Added event listeners for insert and normal modes.

- 19/12/2020 -
Normal mode.
Insert mode.
Caret move.
x to delete a character.
Move with h j k l.
div to textarea.
Change saveFile() to work with textarea.value.
Start left number column.

- 20/12/2020 -
Left number column.
Nerd-tree.

- 21/12/2020 -
Make the terminal input stick to bottom.
Airline
Finish NerdTree.

- 22/12/2020 - 
D to delete a line.
yy to copy a line.
Delete file from nerdTree.
p for paste.
Add ~~~~ to the background.
:%s/word/another/g to replace a word in whole file.
Local Storage.

- 22/12/2020 -
Vimtutor
Open file from browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors